package com.example.back.jpa;


import com.example.common.entity.Admin;

import org.springframework.data.jpa.repository.JpaRepository;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface AdminRepository extends JpaRepository<Admin,Long> {

    /**
     * 查找用户
     * @param username
     * @return
     */
    Admin findByUsername(String username);
}
